package com.zcn.io.web.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zcn.io.common.entity.OrderMain;
import com.zcn.io.web.api.entity.KfPhone;
import com.zcn.io.web.mapper.KfPhoneMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @desc:
 * @author: 202438 邱建伟
 * @date: 2025/5/5 16:50
 * @Copyright (c) 2025, 江苏金恒信息科技股份有限公司
 */
@Service
public class KfPhoneService {

    @Autowired
    private KfPhoneMapper kfPhoneMapper;

    public void list(Page<KfPhone> page, KfPhone kfPhone) {
        this.kfPhoneMapper.list(page, kfPhone);
    }

    public void add(KfPhone kfPhone) {
        this.kfPhoneMapper.insert(kfPhone);
    }

    public void update(KfPhone kfPhone) {
        this.kfPhoneMapper.updateById(kfPhone);
    }

    public void delete(String id) {
        this.kfPhoneMapper.deleteById(id);
    }

    public List<KfPhone> dict(KfPhone kfPhone) {
        return this.kfPhoneMapper.dict(kfPhone);
    }
}
